package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.db.ID;
import lombok.Data;

import java.util.Date;

/**
 * 缓存信息
 *
 * @author ruoyi
 */
@Data
public class BizUser implements ID<Integer>
{
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Excel(name = "班级")
    private String className;

    @Excel(name = "名称")
    private String userName;

    @Excel(name = "角色")
    private String role;

    @Excel(name = "课程")
    private String courseProject;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "起始日期", dateFormat = "yyyy/MM/dd")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止日期",dateFormat = "yyyy/M/dd")
    private Date endTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加入日期", dateFormat = "yyyy/M/dd")
    private Date joinTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退出日期", dateFormat = "yyyy/M/dd")
    private Date outTime;

    @Excel(name = "学号")
    private String userNumber;

    @Excel(name = "综合评语")
    private String comment;

    @Excel(name = "获得荣誉")
    private String honour;

    @Excel(name = "状态")
    private String status;

    @Excel(name = "备注1")
    private String note1;

    @Excel(name = "备注2")
    private String note2;

    @Override
    public Integer getId() {
        return id;
    }

}
